﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace SurfaceApplication3
{
    class Tower_bullet : Bullet
    {
        public Tower_bullet(Texture2D texture, Vector2 position)
        {
            this.texture = texture;
            damages = 100;
            this.position = position;
            Random r = new Random();
            this.direction = new Vector2(r.Next(-10, 10), r.Next(-10, 10));
            this.direction.Normalize();
            this.speed = 4;
        }

        public override void LoadContent(ContentManager Content)
        {
            texture = Content.Load<Texture2D>("bullet");
        }
    }
}
